﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SDT.Model.Customer>" %>
<%@ Import Namespace="SDT.Lib.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Chi tiết
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Header" runat="server">
   Chi tiết khách hàng 
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Toolbar" runat="server">
	<%= Html.Toolbar("Sửa", string.Format("/Customer/Edit/{0}", Model.ID), "edit")%>
	<%= Html.Toolbar("Xóa", string.Format("/Customer/Delete/{0}", Model.ID), "delete")%>
	<%= Html.Toolbar("Quay lại", "/Customer", "back")%>
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%if(ViewData["MessageInfo"]==null){ %>
	<fieldset>
		<legend>Chi tiết</legend>
		<table class="admintable">
			<tbody>
			<tr>
				<td class="key">Tên đăng nhập</td>
				<td><%= Html.Encode(Model.UserName) %></td>
			</tr>
			<tr>
				<td class="key">Tên khách hàng</td>
				<td><%= Html.Encode(Model.FullName) %></td>
			</tr>
			<tr>
				<td class="key">Tỉnh thành</td>
				<td><%= Html.Encode(Model.City!=null? Model.City.Name:string.Empty) %></td>
			</tr>
			<tr>
				<td class="key">Quận huyện</td>
				<td><%= Html.Encode(Model.District!=null? Model.District.Name:string.Empty) %></td>
			</tr>
			<tr>
				<td class="key">Điện thoại</td>
				<td><%= Html.Encode(Model.MobilePhone) %></td>
			</tr>
			<tr>
				<td class="key">Email</td>
				<td><%= Html.Encode(Model.Email) %></td>
			</tr>
			<tr>
				<td class="key">Địa chỉ</td>
				<td><%= Html.Encode(Model.Address) %></td>
			</tr>			
			</tbody>
		 </table>
	 </fieldset>
	
<% } %>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Message" runat="server">
    <%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>  
</asp:Content>

